public class Test {
    public static void main(String[] args) {
        String str = "a:";
        System.out.println(str.split(":").length);
    }
}
